package com.zx.framework.plat.user.po;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * UserDept entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="s_user_dept")

public class UserDept  implements java.io.Serializable {


    // Fields    

     private UserDeptId id;
     private String layer;


    // Constructors

    /** default constructor */
    public UserDept() {
    }

    
    /** full constructor */
    public UserDept(UserDeptId id, String layer) {
        this.id = id;
        this.layer = layer;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="userId", column=@Column(name="USERID", nullable=false, length=64) ), 
        @AttributeOverride(name="deptId", column=@Column(name="DEPTID", nullable=false, length=64) ) } )

    public UserDeptId getId() {
        return this.id;
    }
    
    public void setId(UserDeptId id) {
        this.id = id;
    }
    
    @Column(name="LAYER", nullable=false, length=64)

    public String getLayer() {
        return this.layer;
    }
    
    public void setLayer(String layer) {
        this.layer = layer;
    }
   








}